@import url("../../[branding]_components/dealerInteractiveMap.css");

/* MINI tab � removes uppercase fallback (brand CSS sets --dim-tab-text-transform) */
.dealer-map__tab {
    text-transform: none;
}

.dealer-map__tab:not(.is-active) {
    border-bottom: 2px solid var(--brand-hover) !important;
}

.dealer-map__tab:hover {
    font-family: var(--dimap-tab-active-font-family) !important;
    border-bottom: 2px solid var(--brand) !important;
}
 

/* MINI active tab � brand font and weight */
.dealer-map__tab.is-active {
    font-family: var(--dimap-tab-active-font-family);
    font-weight: var(--dimap-tab-active-font-weight);
    padding-top: 16px;
}

/* MINI select no uppercase */
.dealer-map__select {
    text-transform: none;
    border: var(--dim-select-border-bottom);
    width: 100%;
    background-size: 16.62px !important;
    background-position: right 12px center !important;
}

/* MINI helper � margin-right and margin-left auto */
.dealer-map__helper {
    margin-left: auto;
    margin-right: auto;
}

/* MINI search-clear � brand background color */
.dealer-map__search-clear {
    display: none;
    background: var(--dim-search-clear-color);
}

/* MINI search clear svg � brand stroke color */
.dealer-map__search-clear svg {
    stroke: var(--dim-search-icon-color);
}

/* MINI outline CTA hover � brand var border */
.dealer-map-card__cta--outline:hover {
    border-color: var(--brand--dark);
}

.dealer-map__helper {
    margin-right: 0;
}

.dealer-map__tabs {
    padding: 0 200px;
    width: 100%;
}

/* Subaru — buttons fill the full width of dealer-map__tabs__border at all breakpoints */
.dealer-map__tabs__border {
    width: 100%;
    display: flex;
}

.dealer-map__tab {
    flex: 1;
    width: auto;
}
    
.dealer-map__control-group,
.dealer-map__search {
    flex: 1 1 0;
    width: auto;
}

.dealer-map-card__icon {
    stroke-width: 1;
    width: 28px;
    height: 28px;
}

.dealer-map-card__address,
.dealer-map-card__phone,
.dealer-map-card__email,
.dealer-map-card__hours-label {
    display: flex;
    align-items: center;
}

.dealer-map-card__address,
.dealer-map-card__hours-label {
    color: #282828 !important;
    text-transform: uppercase !important;
}

.dealer-map__controls:has(.dealer-map__control-group label) {
    padding-top: 30px !important;
    align-items: end !important;
}
.dealer-map__controls:has(.dealer-map__control-group label):has(.dealer-map__control-group span) {
   align-items: center !important;
}

.dealer-map__controls .dealer-map__control-group label{
    font-family: var(--font-family-1);
    color: var(--brand);
    font-weight: var(--weight-bolder);
    font-size: 1rem;
}

.dealer-map__toolbar {
  background: var(--gray-border-light-alt);
  border-bottom: 1px solid var(--gray-border-light-alt);
}

@media (min-width: 1366px) {
   .dealer-map-card__title{
        margin-left: 52px !important;
   } 
}

/* MINI � font-size reductions at wide desktop */
@media (max-width: 1366px) {
    .dealer-map-card__title {
        font-size: 24px;
    }

    .dealer-map-card__address,
    .dealer-map-card__phone,
    .dealer-map-card__email,
    .dealer-map-card__hours-label,
    .dealer-map-card__hours-detail {
        font-size: 18px;
    }

    .dealer-map-card__hours-row {
        font-size: 18px;
    }
    .dealer-map__controls {
        padding: 30px 14px;
        width: 100%;
    }
    .dealer-map__tabs {
        padding: 0 14px;
    }
    .dealer-map-card__cta {
        min-width: 193px;
        height: 60px;
    }

}

/* MINI � tablet layout adjustments and font-size reductions */
@media (max-width: 768px) {
    .dealer-map__controls .dealer-map__control-group label{
        font-size: 0.875rem;
    }
    .dealer-map__tabs {
        width: 100%;
    }

    .dealer-map__tabs__border {
        width: 100%;
        display: flex;
    }

    .dealer-map__tab {
        flex: 1;
        width: auto;
        font-size: 16px;
        padding-bottom: 0;
    }

    .dealer-map-card__title {
        font-size: 18px;
        text-align: center;
    }

    .dealer-map-card__address,
    .dealer-map-card__phone,
    .dealer-map-card__email,
    .dealer-map-card__hours-label,
    .dealer-map-card__hours-detail {
        font-size: 16px;
    }

    .dealer-map-card__hours-detail {
        margin-left: 52px;
    }

    .dealer-map-card__hours-row {
        font-size: 16px;
    }

    .dealer-map__map-container {
        width: 100vw;
        height: 350px;
    }

    .dealer-map__controls {
        padding: 30px 14px;
        flex-direction: row;
        align-items: start;
    }

    .dealer-map-card__footer {
        gap: 18px;
    }

    .dealer-map-card__cta {
        width: 475px;
        margin: 0 auto;
        height: 48px;
    }

    .dealer-map__panel {
        background: var(--brand-white);
    }

    
    .dealer-map-card__icon {
        stroke-width: 1;
        width: 24px;
        height: 24px;
    }
}

/* MINI � mobile map height and font-size reductions */
@media (max-width: 576px) {
    .dealer-map-card__title {
        font-size: 18px;
        text-align: center;
    }

    .dealer-map-card__address,
    .dealer-map-card__phone,
    .dealer-map-card__email,
    .dealer-map-card__hours-label,
    .dealer-map-card__hours-detail {
        font-size: 16px;
    }

    .dealer-map-card__hours-row {
        font-size: 16px;
    }

    .dealer-map__map-container {
        height: 310px !important;
    }
    .dealer-map__controls {
        flex-direction: column;
    }

    .dealer-map__control-group,
    .dealer-map__search {
        width: 100%;
    }
    .dealer-map__tabs {
        padding: 0 14px;
    }
}
